package com.neutech.neurfin.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neutech.neurfin.mapper.FinMapper;
import com.neutech.neurfin.service.FinService;
import com.neutech.po.FinUser;
@Service
public class FinServiceImpl implements FinService{
	@Autowired
	private FinMapper finMapper;

	@Override
	public FinUser getUser(int id) {
		
		FinUser user = finMapper.getFinById(id);
		return user;
	}

	@Override
	public void addFin(FinUser finuser) {
		// TODO Auto-generated method stub
		finMapper.addFin(finuser);
	}

	@Override
	public void updateFin(FinUser finuser) {
		// TODO Auto-generated method stub
		finMapper.updateFin(finuser);
	}

	@Override
	public void delectFinById(int id) {
		// TODO Auto-generated method stub
		finMapper.delectFinById(id);
	}


}
